<?php
/**
 *
 * @author Mike Gao
 */
class BuyViewModel extends ViewModel{
    protected $pk  = 'Buy.id';

    public $viewFields = array(
    	'Buy' => array('*'),
        //'Supplier' => array('name'=>'sname', '_on' => 'Buy.supplier_id = Supplier.id'),
        'Product' => array('id'=>'pid', 'name'=>'pname','cas','ename' => 'pename' ,'_on' => 'Buy.product_id = Product.id'),
        
    );


}
?>
